// 招聘信息模块
import request from "@/utils/request"

//获取招聘
export const getContact = params =>{
  return request({
    method:'GET',
    url:'/contact/page',
    params
  })
}

//ID招聘信息
export const getContactID = params =>{
  return request({
    method:'GET',
    url:'/contact/id',
    params
  })
}

//修改招聘信息
export const postUpdateContact  =  (data) =>{
  return request({
    method:'POST',
    url:'/contact/update',
    data
  })
}
//添加招聘
export const postAddContact  =  (data) =>{
  return request({
    method:'POST',
    url:'/contact/add',
    data
  })
}

//删除招聘
export const postDeleteContact = data =>{
  return request({
    method:"POST",
    url:'/contact/delete',
    data
  })
}